package com.acme.service;

import com.acme.domain.Order;

public class ValidateService {

	public static boolean validate(Order o){
		if ( o.getNumberOfShares() < 0){
			return false;
		} else if (o.getPrice() < 0){
			return false;
		} else {
			return true;
		}
	}

}
